package com.qingcloud.base.remote.admin;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 事件计算规则
 */
@Data
public class MessageEventCalRule implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "事件编号", example = "E1241", hidden = true)
    private String eventCode;

    @ApiModelProperty(value = "告警等级")
    private Integer warnLevel;

    @ApiModelProperty(value = "计算数据范围 0无限制")
    private Integer dataMinute;

    @ApiModelProperty(value = "规则报警描述")
    private String warnDesc;

    @ApiModelProperty(value = "比较类型")
    private List<MessageEventCalCompare> compareList;

}
